/**
 * 
 */

module qznn {

    export class PlayWaitPanelQZNN extends eui.Component {

        public constructor() {
            super();
            this.skinName = "resource/ui/qznn/PlayWaitSkinQZNN.exml";
            this.width = GameConfig.curWidth()
            this.height = GameConfig.curHeight()
        }
        public noticeGroup: eui.Group;
        /**房间信息 */
        public CountDownBg: eui.Image;
        public CountDownText: eui.BitmapLabel;
        public rule_difen: eui.Label;
        /**房间信息 */

        /**基础功能按钮 */
        public img_jqr: eui.Image;
        public bank: eui.Image;
        public addMoney: eui.Image;
        public menu_button: eui.Button;
        public menu_group: eui.Group;

        public bianhao: eui.Label;
        public dizhu: eui.Label;



        public menu_fankui: eui.Button;
        public menu_jilu: eui.Button;
        public menu_set: eui.Button;
        public menu_help: eui.Button;
        public menu_exit: eui.Button;

        /**基础功能按钮 */

        //抢庄按钮
        public qiangzhuang_group: eui.Group;
        public buqiang: eui.Image;
        public qiang_1: eui.Image;
        // public qiang_2: eui.Image;
        // public qiang_3: eui.Image;
        // public qiang_4: eui.Image;
        //叫分按钮
        public jiaofen_group: eui.Group;
        public jiao_1: eui.Image;
        public jiao_2: eui.Image;
        public jiao_3: eui.Image;
        public jiao_4: eui.Image;
        //搓牌按钮
        public zhunbei: eui.Image;
        public btn_youniu: eui.Image;
        public btn_meiniu: eui.Image;
        //手牌
        public poker_My0: eui.Image;
        public poker_My1: eui.Image;
        public poker_My2: eui.Image;
        public poker_My3: eui.Image;
        public poker_My4: eui.Image;
        public poker_Up0: eui.Image;
        public poker_Up1: eui.Image;
        public poker_Up2: eui.Image;
        public poker_Up3: eui.Image;
        public poker_Up4: eui.Image;
        //牛牛类型
        public niu_type_up: eui.Image;
        public niu_type_my: eui.Image;
        public niu_type_left: eui.Image;
        public niu_type_right: eui.Image;

        //得分
        public thisTimeScore_UpLeft: eui.BitmapLabel;
        public thisTimeScore_Up: eui.BitmapLabel;
        public thisTimeScore_My: eui.BitmapLabel;
        public thisTimeScore_Left: eui.BitmapLabel;
        public thisTimeScore_Right: eui.BitmapLabel;
        public thisTimeScore_UpRight: eui.BitmapLabel;

        public player0: components.QZNNPlayerHeadPanel;
        public player1: components.QZNNPlayerHeadPanel;
        public player2: components.QZNNPlayerHeadPanel;
        public player3: components.QZNNPlayerHeadPanel;

        public group_xjxz: eui.Group;
        public btn_0: components.HallToolBarBtnPanel;
        public btn_1: components.HallToolBarBtnPanel;
        public btn_2: components.HallToolBarBtnPanel;
        public btn_3: components.HallToolBarBtnPanel;
        public btn_4: components.HallToolBarBtnPanel;


        public poker2_0: eui.Image;
        public poker2_1: eui.Image;
        public poker2_2: eui.Image;
        public poker2_3: eui.Image;
        public poker2_4: eui.Image;

        public poker1_0: eui.Image;
        public poker1_1: eui.Image;
        public poker1_2: eui.Image;
        public poker1_3: eui.Image;
        public poker1_4: eui.Image;

        public poker3_0: eui.Image;
        public poker3_1: eui.Image;
        public poker3_2: eui.Image;
        public poker3_3: eui.Image;
        public poker3_4: eui.Image;

        public blab_result0: eui.BitmapLabel;
        public blab_result1: eui.BitmapLabel;
        public blab_result2: eui.BitmapLabel;
        public blab_result3: eui.BitmapLabel;
        public blab_result4: eui.BitmapLabel;

        public group_jqr: eui.Group;
        public lab_N1: eui.Label;
        public lab_N2: eui.Label;
        public lab_N3: eui.Label;
        public lab_N4: eui.Label;

        public img_player1: eui.Image;
        public img_player0: eui.Image;
        public img_player2: eui.Image;
        public img_player3: eui.Image;

        public goldNum_player0: eui.BitmapLabel;
        public goldNum_player1: eui.BitmapLabel;
        public goldNum_player2: eui.BitmapLabel;
        public goldNum_player3: eui.BitmapLabel;

        public img_zhunbei0: eui.Image;
        public img_zhunbei1: eui.Image;
        public img_zhunbei2: eui.Image;
        public img_zhunbei3: eui.Image;



        public img_wcbg0: eui.Image;
        public img_wcbg1: eui.Image;
        public img_wcbg2: eui.Image;
        public img_wcbg3: eui.Image;
        public img_wc0: eui.Image;
        public img_wc1: eui.Image;
        public img_wc2: eui.Image;
        public img_wc3: eui.Image;

        public childrenCreated(): void {
            super.childrenCreated();
            for (let i = 0; i < 3; i++) {
                this["player" + (i + 1)].visible = false;
            }

            this.niu_type_up.source = "";
            this.niu_type_my.source = "";
            this.niu_type_right.source = "";
            this.niu_type_left.source = "";
            // this.niu_type_4.source = "";

            for (let i = 0; i < 2; i++) {
                this["btn_" + i].img_bg.width = 167;
            }

            for (let i = 1; i < 5; i++) {
                this["lab_N" + i].text = "";
            }

            for (let i = 0; i < 4; i++) {
                this["img_wc" + i].visible = false;
                this["img_wcbg" + i].visible = false;
                this["img_player" + i].visible = false;
                this["goldNum_player" + i].text = "";
            }
            this.group_jqr.visible = false;
        }
    }
}